package com.bo.orderliness;

/**
 * @Author: gpb
 * @Date: 2024/8/1 15:29
 * @Description:
 */
public class Single {

    private static volatile Single INSTANCE;

    private Single () {
    }

    public static Single getInstance () {
        if (INSTANCE == null) {
            synchronized (Single.class) {
                if (INSTANCE == null) {
                    INSTANCE = new Single();
                }
            }
        }
        return INSTANCE;
    }

    public static void main (String[] args) {
        int i = 0;
        i++;
        int j = 200;
        j = j * 100;
        j = j + 100;
    }
}
